<?php

/*
 * Fresns Control Panel (Standalone)
 * Copyright (C) 2021-Present 刘鑫
 * Released under the MIT License.
 */

use App\Http\Center\Helper\PluginHelper;

if (PluginHelper::pluginCanUse('FcpApi')) {
    Route::group(['prefix' => 'admin', 'middleware' => 'auth:api', 'namespace' => '\App\Plugins\FcpApi\TweetPluginUsages'], function () {
        Route::get('/tweetpluginscene/index', 'FsControllerAdmin@index')->name('admin.tweetpluginscene.index');
        Route::post('/tweetpluginscene/store', 'FsControllerAdmin@store')->name('admin.tweetpluginscene.store');
        Route::post('/tweetpluginscene/update', 'FsControllerAdmin@update')->name('admin.tweetpluginscene.update');
        Route::post('/tweetpluginscene/updateRankNum', 'FsControllerAdmin@updateRankNum')->name('admin.tweetpluginscene.updateRankNum');
        Route::post('/tweetpluginscene/destroy', 'FsControllerAdmin@destroy')->name('admin.tweetpluginscene.destroy');
        Route::get('/tweetpluginscene/detail', 'FsControllerAdmin@detail')->name('admin.tweetpluginscene.detail');
        Route::get('/tweetpluginscene/export', 'FsControllerAdmin@export')->name('admin.tweetpluginscene.export');
        Route::get('/tweetpluginscene/addLangCode', 'FsControllerAdmin@addLangCode')->name('admin.tweetpluginscene.addLangCode');
    });
}